package hong.jun.fegin;


import com.netflix.ribbon.proxy.annotation.Hystrix;
import hong.jun.fallback.Systemfallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "course-server", fallback = Systemfallback.class)
public interface SystemFeign {
    @GetMapping(value = "course/{id}")
    String landbyid(@PathVariable("id") long id);
}
